package co.infinum.goldfinger.example;

import ohos.agp.components.Text;

/**
 * ex.
 *
 * @author zh
 * @since 2021-06-25
 */
public abstract class SimpleTextWatcher implements Text.TextObserver {

    /**
     * onTextChanged
     *
     * @param text text
     */
    public abstract void onTextChanged(String text);

    @Override
    public void onTextUpdated(String var1, int var2, int var3, int var4) {
        onTextChanged(var1.toString());
    }

}
